from blog1.models import Post
from django.template import RequestContext
from django.shortcuts import render_to_response

def home(request):
        Posts = Post.objects.all()order_by("-created")[:2]
        return render_to_response('blog1.html', locals()))
